package utils.common;

import java.io.IOException;
import java.util.Properties;

/**
 * 文件读取
 */
public class PropertiesUtil {

	public static String getValue(String fileName, String key) throws IOException {
		Properties prop = new Properties();
		prop.load(PropertiesUtil.class.getClassLoader().getResourceAsStream(fileName));
		return prop.getProperty(key);
	}
}
